<div style="float: left; width: 170px; min-height: 160px; margin: 10px; padding: 5px; border: 1px solid #0066A5;">
  <% if product.image.exists? then %>
      <div style="text-align: center; height: 100px">
        <%= image_tag product.image.url(:thumb) %>
      </div>
  <% end %>
  <h3 style="margin: 0; overflow: hidden">
    <%= link_to product.name, product %>
  </h3>

  <p style="font-weight: bold; margin: 0"><%= "#{t("product.price")}: #{number_to_currency(product.price)}" %></p>

  <div style="margin: 0" class="product_item">
    <%= link_to t("product.show.link"), product, :class => "button" %>
    <%= link_to t("cart.model_name"), {:controller => "carts", :action => "add",
                      :id => product},
                :method => :post,
                :remote => true,
                :class => "button" %>
  </div>

</div>
